<include file="Article:leftmenu" />


<div class="content-right fl">
 

    <h1 class="content-right-title">发布文章</h1>
	<ul class="wizard" style="margin-bottom:50px;">
	    <li class="wizard-item complete">
	        <dl class="wizard-item-content">
	            <dt class="wizard-ic-step">
	                <span class="wizard-icstp-num">1</span>
	                <span class="wizard-icstp-title">编辑文章信息</span>
	            </dt>
	            <dd class="wizard-ic-desc"></dd>
	        </dl>
	    </li>
	    <li class="wizard-item process">
	        <dl class="wizard-item-content">
	            <dt class="wizard-ic-step">
	                <span class="wizard-icstp-num">2</span>
	                <span class="wizard-icstp-title">编辑文章详情</span>
	            </dt>
	        </dl>
	    </li>

	</ul>
    
<div style="margin-left:2%;">
<form action="" method="post" id="form" >


    <div class="formitems">
        <label class="fi-name">关键词：</label>
        <div class="form-controls">
            <input type="text" class="input xxlarge" maxlength="30" name="keywords" value="<?php echo $article['keywords'];?>">
            <span class="fi-help-text">多个关键词用英文逗号隔开</span>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name"><span class="colorRed">*</span>文章简要描述：</label>
        <div class="form-controls">
        	<textarea class="textarea middle" maxlength="50" name="description"><?php echo $article['description']?$article['description']:$article['title'];?></textarea>
            <span class="fi-help-text">填写文章的简要描述,50个字以内</span>
        </div>
    </div>
    
    <?php if($article['is_free'] == 0){?>
    <div class="formitems">
        <label class="fi-name">收费文章试看部分：</label>
        <div class="form-controls">
	        <script id="container1" name="try_content" type="text/plain" >
            		<?php echo htmlspecialchars_decode($article['try_content']);?>
			</script>
        </div>
    </div>
    <?php } ?>
    

    <div class="formitems">
        <label class="fi-name"><span class="colorRed">*</span>文章详情：</label>
        <div class="form-controls">
	        <!-- 加载编辑器的容器 -->
	        <script id="container2" name="content" type="text/plain">
            		<?php echo htmlspecialchars_decode($article['content']);?>
        </script>
        </div>
    </div>
    
    
    <div class="formitems">
        <label class="fi-name"></label>
        <div class="form-controls">


	<div class="diy-actions">

		<div class="diy-actions-submit" style="margin-top:50px;">
		<!-- 	<a href="/Item/add_step2/id/2418042//Is/update" class="btn">上一步</a>-->
			<a href="javascript:AjaxFormSubmit();" class="btn btn-primary" id="j-savePage" >保  存</a>
		<!--  	<a href="javascript:;" class="btn btn-primary" id="j-saveAndPrvPage">保存并预览</a>-->
		</div>
	</div>



        </div>
    </div>
    

</form>
</div>




</div>

<!-- 配置文件 -->
    <script type="text/javascript" src="__STATIC__admin/js/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__STATIC__admin/js/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container1');
        var ue = UE.getEditor('container2');
    </script>